package consts

const (
	GlobalConfDirName = ".fe_config"
	MetadataDirName   = ".fe_metadata"
	MetaFilename      = "metadata.yml"

	EnvProduct = "product"
	EnvDev     = "dev"

	FileTypeDir     byte = 1
	FileTypeRegular byte = 2
	FileTypeDriver  byte = 3
	FileTypeVirtual byte = 4

	FileTypeStrRegular = "文件"
	FileTypeStrDir     = "目录"

	TabTypeDefault    = "Default"
	TabTypeFile       = "File"
	TabTypeMetadata   = "Metadata"
	TabTypeSetting    = "Setting"
	TabTypeTaskList   = "Task List"
	TabTypeFileCreate = "Create"
	TabTypeRename     = "Rename"
	TabTypeOpList     = "Operate List"
	TabTypeSearchRes  = "Search Result"

	TimeLayoutWithoutMark = "20060102_150405"
)

var (
	// 音频后缀
	ExtNameAudio = []string{"mp3", "aac", "flac", "wav", "ogg", "m4a", "wma", "amr", "ape"}

	// 视频后缀
	ExtNameVideo = []string{"mp4", "mkv", "avi", "mov", "wmv", "flv", "webm", "m4v", "3gp", "ts", "mpg", "mpeg", "m2v", "rmvb", "rm", "vob", "mts", "m2ts"}

	// 图片后缀
	ExtNameImage = []string{"jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "ico", "tif", "tiff", "psd"}

	// 文本后缀
	ExtNameText = []string{"txt", "md", "html", "htm", "xml", "json", "yaml", "yml", "ini", "cfg", "conf", "log", "sql", "bat", "sh", "py", "java", "go", "php"}

	// 文档后缀
	ExtNameDocument = []string{"doc", "docx", "xls", "xlsx", "ppt", "pptx", "csv"}

	FileTypeStrMap = map[string]byte{
		FileTypeStrDir:     FileTypeDir,
		FileTypeStrRegular: FileTypeRegular,
	}
)
